package z.frpc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import frpclib.Frpclib;

public final class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view) {
        if (Frpclib.isRunning("1")) {
            Frpclib.close("1");
            stopService(new Intent(this, MyService.class));
        } else startService(new Intent(this, MyService.class));
    }
}

